package com.youxin.busfoundation.common.es.bean;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.youxin.foundation.utils.DateUtil;

/**
 * @desc 专利
 */
public class PatentBean {
    private String name;
    @JsonProperty("patent_number")
    private String patentNumber;
    @JsonProperty("publish_number")
    private String publishNumber;
    @JsonProperty("publish_date")
    private String publishDate;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getPatentNumber() {
        return patentNumber;
    }
    public void setPatentNumber(String patentNumber) {
        this.patentNumber = patentNumber;
    }
    public String getPublishNumber() {
        return publishNumber;
    }
    public void setPublishNumber(String publishNumber) {
        this.publishNumber = publishNumber;
    }
    public String getPublishDate() {
        return publishDate==null?"": DateUtil.msecondTimeToString(Long.valueOf(publishDate),"yyyy-MM-dd");
    }
    public void setPublishDate(String publishDate) {
        this.publishDate = publishDate;
    }
}
